package com.weitu.permission.authorityResource.mapper;

import com.weitu.permission.authority.entity.AuthorityResource;

import java.util.List;

/**
 * @author LiMeng 2017/3/22
 */
public interface AuthorityResourceMapper {
    /**
     * 根据权限id删除权限菜单关联数据
     * @param authorityId 权限id
     * @return 受影响的行数
     */
    int deleteAuthorityResourceByAuthorityId(String authorityId);

    /**
     * 插入角色权限关联数据
     * @param authorityResourceList 角色权限列表
     * @return 受影响的行数
     */
    int insertAuthorityResource(List<AuthorityResource> authorityResourceList);
}
